package proxy;

import sampleProgr.BasicObject;
import java.lang.reflect.Proxy;
public class BasicObjectFactory {
	public proxy.IAdd IAdd(){
		BasicObject obj = new BasicObject(2);
		MyProxy proxy = new MyProxy(obj);
        return (IAdd)Proxy.newProxyInstance(BasicObject.class.getClassLoader(), new Class[] {IAdd.class}, proxy);
	}
}
